package com.cmc.cloud.cmclink.doc.convert;

import com.cmc.cloud.cmclink.doc.entity.OperateLogDO;
import com.cmc.cloud.cmclink.doc.vo.sovo.operatelog.OperateLogCreateReqVO;
import com.cmc.cloud.cmclink.doc.vo.sovo.operatelog.OperateLogRespVO;
import com.cmc.cloud.cmclink.doc.vo.sovo.operatelog.OperateLogUpdateReqVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * doc_operate_log Convert
 *
 * @author 集运管理员
 */
@Mapper
public interface OperateLogConvert {

    OperateLogConvert INSTANCE = Mappers.getMapper(OperateLogConvert.class);

    /**
     * 属性转换
     *
     * @param bean
     * @return
     */
    OperateLogDO convert(OperateLogCreateReqVO bean);

    /**
     * 属性转换
     *
     * @param bean
     * @return
     */
    OperateLogDO convert(OperateLogUpdateReqVO bean);

    /**
     * 属性转换
     *
     * @param bean
     * @return
     */
    OperateLogRespVO convert(OperateLogDO bean);

    /**
     * 属性转换
     *
     * @param list
     * @return
     */
    List<OperateLogRespVO> convertList(List<OperateLogDO> list);

}
